<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
$(document).ready(function(){
	// setting date
	$(".date-pick").datePicker({autoFocusNextInput: true});
	$(".date-pick").mask("9999-99-99");
	// setting number
	$(".numeric").numeric();
	$(".numeric").css("ime-mode","disabled");
});
</script>
</head>

<body>
<div class="content_top">
	<p class="path">
		<strong>홍보영역관리</strong>
	</p>
</div>
<h4>웹포털 모든 홍보영역에 등록/수정/삭제할 수 있습니다.</h4>
<form:form modelAttribute="banner" action="/service/banner/write" method="post">
<div class="tbl_type3"> 
	<table cellspacing="0" border="1">
	<col width="120">
	<col>
	<col width="120">
	<col>
	<tr>
		<th>배너구분</th>
		<td colspan="3">${bannerThema.bnnrTypeNm}</td>
	</tr>
	<tr>
		<th>배너제목</th>
		<td></td>
		<th>배너순번</th>
		<td></td>
	</tr>
	<tr>
	<th>배너내용<br>(HTML 마크업)</th>
	<td class="inner_tbl_type1" colspan="3">
		업로드된 url을 참고하여 아래 내용에 태크로 첨부하세요
		<br>
		Ex) &lt;img src="http://images.hangame.co.kr/mobile/portal//game/qr/20003_qr_1308651315067.JPG"/&gt;
		<br>
		<textarea rows="10" cols="10" class="input_txt" style="height:150px; width:95%"></textarea>							
	</td>
	</tr>
	<tr>
	<th>배너이미지</th>
	<td class="inner_tbl_type1" colspan="3">
		<a href="#" class="btn_sml"><span>파일첨부</span></a>
		<a href="#" class="btn_sml"><span>적용</span></a>
		<br><br>
		<input type="text" class="input_txt" style="width: 100%;height:20px;">
		<br><br>
		사이즈 : 000*000, 포멧 : png파일
		<br><br>
	</td>
	</tr>
	<tr>
	<th>외부링크</th>
	<td class="inner_tbl_type1" colspan="3">
		<table cellspacing="0" border="1" class="inner_tbl_y">
		<col width="85">
		<col>
		<tr>
			<th>링크형태</th>
			<td>
				<input type="radio" class="rdo" name="use" value="Y" checked="checked"><span>노출</span></input>  
				<input type="radio" class="rdo" name="use" value="N"><span>숨김</span></input>
			</td>
		</tr>
		<tr>
			<th>링크주소</th>
			<td><input type="text" class="input_txt" style="width: 80%;height:20px;"></td>
		</tr>
		</table>
	</td>
	</tr>
	<tr>
		<th>노출기간</th>
		<td colspan="3">
			<input type="hidden" id="expStartDate" name="expStartDate" value="">
			<span class="input_date"><input name="date1" id="date1" style="width:70px" class="date-pick" /></span>
			<input type="text" class="numeric" style="width: 20px" maxlength="2"/>&nbsp;
			<input type="text" class="numeric" style="width: 20px" maxlength="2"/>&nbsp;
			~
			<input type="hidden" id="expStartDate" name="expStartDate" value="">
			<span class="input_date"><input name="date1" id="date1" style="width:70px" class="date-pick" /></span>
			<input type="text" class="numeric" style="width: 20px" maxlength="2"/>&nbsp;
			<input type="text" class="numeric" style="width: 20px" maxlength="2"/>&nbsp;
		</td>
	</tr>
	</table>
</div>
<br>

<div class="div_right">
	<a href="/service/banner?bnnrThmSeq=${bannerThema.bnnrThemaNo}" class="btn_sml"><span>목록보기</span></a>
	<a href="javascript:;" class="btn_sml" onclick="doSave();"><span>등록하기</span></a>
</div>
</form:form>
</body>
</html>